package com.ruoyi.cderp.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产退料对象 production_return
 *
 * @author ruoyi
 * @date 2025-06-15
 */
public class ProductionReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 退料单号 */
    @Excel(name = "退料单号")
    private String returnNo;

    /** 生产工单ID */
    @Excel(name = "生产工单ID")
    private String orderId;

    /** 生产工单号 */
    @Excel(name = "生产工单号")
    private String orderNo;


    @Excel(name = "产品名称")
    private String productName;


    /** 退料时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退料时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    // 创建最早时间
    private Date returnMinTime;

    // 创建最晚时间
    private Date returnMaxTime;

    /** 状态(0:待退料,1:已退料,2:已取消) */
    @Excel(name = "状态(0:待退料,1:已退料,2:已取消)")
    private Integer status;

    /** 生产退料明细信息 */
    private List<ProductionReturnItem> productionReturnItemList;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Date getReturnMinTime() {
        return returnMinTime;
    }

    public void setReturnMinTime(Date returnMinTime) {
        this.returnMinTime = returnMinTime;
    }

    public Date getReturnMaxTime() {
        return returnMaxTime;
    }

    public void setReturnMaxTime(Date returnMaxTime) {
        this.returnMaxTime = returnMaxTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setReturnNo(String returnNo)
    {
        this.returnNo = returnNo;
    }

    public String getReturnNo()
    {
        return returnNo;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setReturnTime(Date returnTime)
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime()
    {
        return returnTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public List<ProductionReturnItem> getProductionReturnItemList()
    {
        return productionReturnItemList;
    }

    public void setProductionReturnItemList(List<ProductionReturnItem> productionReturnItemList)
    {
        this.productionReturnItemList = productionReturnItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnNo", getReturnNo())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("returnTime", getReturnTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("productionReturnItemList", getProductionReturnItemList())
            .toString();
    }
}
